xenconsoled: don't force newline with timestamps
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 20 Feb 2008 18:00:28 +0000 (18:00 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 20 Feb 2008 18:00:28 +0000 (18:00 +0000)
commit7b1566db123d73e675c50d6f5ca5fe956bcf6412
tree62f052aff108f5c5dd924aa404aa8445ed55eea9
parent7ffbeb40de73d3facdadfc27b96b3795970a2069
xenconsoled: don't force newline with timestamps

Previously a newline was forced after every call to
write_with_timestamp. This could result in some ugly logs when a
single console line stretched over multiple calls. This change carries
some extra state to determine if we ended the last call to
write_with_timestamp on a newline, and prints the timestamp as
appropriate.

This also fixes a bug where logging hv messages was dependent on the
guest timestamp flag.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
tools/console/daemon/io.c